package com.example.medicalzb.mapper;

import com.example.medicalzb.domain.DrugCompany;
import com.example.medicalzb.entity.DrugCompanyEntity;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CompanyMapper {

    List<DrugCompany> getAllCompany(String name);

    DrugCompany getCompanyById(Integer id);

    int saveCompany(DrugCompanyEntity drugCompanyEntity);

    int updateCompany(DrugCompany drugCompany);

    int deleteCompanyById(Integer id);
}
